#!/bin/bash

files=`find ~/mstk-meshes ! -name "*.mstk"`

for file in $files
do 
echo $file
if [ -d $file ]; then
echo "$file is a directory"
else
   rm $file
echo "$file is deleted"
fi
done